
---@class CustomAttackTargetGoal:GoalBase
CustomAttackTargetGoal = class(GoalBase)

function CustomAttackTargetGoal:GetLabel()
    return ECustomGoalLabel.AttackTarget;
end

function CustomAttackTargetGoal:GetPriority()
    return 10;
end

function CustomAttackTargetGoal:InitActiveCondition()
    local state = State.new()
    state:Set(ECustomStateKey.Find_target,true);
    state:Set(ECustomStateKey.NearTarget,true);
    state:Set(ECustomStateKey.CanAttackTarget,true);
    return state;
end

function CustomAttackTargetGoal:InitEffects()
    local state = State.new()
    state:Set(ECustomStateKey.CanAttackTarget,false);
    return state;
end